using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN KhoaHocService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: KhoaHocService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class KhoaHocService : IKhoaHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: KhoaHoc_ID</para>
		/// <para>Output: KhoaHocEntity</para>
		///</summary>
		public KhoaHocEntity SelectOne(int KhoaHoc_ID){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.SelectOne(KhoaHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaKhoaHoc</para>
		/// <para>Input: MaKhoaHoc</para>
		/// <para>Output: KhoaHocEntity</para>
		///</summary>
		public KhoaHocEntity SelectOneByMaKhoaHoc(string MaKhoaHoc){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.SelectOneByMaKhoaHoc(MaKhoaHoc);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KhoaHocEntity</para>
		///</summary>
		public List<KhoaHocEntity> SelectAll(){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KhoaHocEntity</para>
		///</summary>
		public List<KhoaHocEntity> SelectAllFilter(string strFilter){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: KhoaHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(KhoaHocEntity o){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: KhoaHocEntity</para>
		/// <para>Output: KhoaHocEntity</para>
		///</summary>
		public KhoaHocEntity SaveRet(KhoaHocEntity o){
			KhoaHocDAO dao = new KhoaHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of KhoaHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<KhoaHocEntity> list){
			KhoaHocDAO dao = new KhoaHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of KhoaHocEntity</para>
		/// <para>Output: List of KhoaHocEntity</para>
		///</summary>
		public List<KhoaHocEntity> SaveListRet(List<KhoaHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: KhoaHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(KhoaHocEntity o){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of KhoaHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<KhoaHocEntity> list){
			KhoaHocDAO dao = new KhoaHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaKhoaHoc</para>
		/// <para>Input: NewMaKhoaHoc,KhoaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaKhoaHoc(string NewMaKhoaHoc,int KhoaHoc_ID){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.UpdateMaKhoaHoc(NewMaKhoaHoc,KhoaHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenKhoaHoc</para>
		/// <para>Input: NewTenKhoaHoc,KhoaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenKhoaHoc(string NewTenKhoaHoc,int KhoaHoc_ID){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.UpdateTenKhoaHoc(NewTenKhoaHoc,KhoaHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaKhoaHoc</para>
		/// <para>Input: NewMoTaKhoaHoc,KhoaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaKhoaHoc(string NewMoTaKhoaHoc,int KhoaHoc_ID){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.UpdateMoTaKhoaHoc(NewMoTaKhoaHoc,KhoaHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateBatDau</para>
		/// <para>Input: NewBatDau,KhoaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateBatDau(DateTime NewBatDau,int KhoaHoc_ID){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.UpdateBatDau(NewBatDau,KhoaHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: KhoaHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(KhoaHocEntity o){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: KhoaHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int KhoaHoc_ID){
			KhoaHocDAO dao = new KhoaHocDAO();
			return dao.DeleteByID(KhoaHoc_ID);
		}
		#endregion

		#region Select,delete by KhoaHoc_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END KhoaHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

